new Vue({
	el: "#app",
	data: {
		user_name: "",
		card_num: "",
		check_num: "",
		bank_name: "",
		num: 60,
		btn_msg: "获取验证码"
	},
	methods: {
		save: function() {
			return "" == this.user_name.trim() ? (wx.showToast({
				title: "请输入持卡人姓名",
				icon: "none",
				duration: 2e3,
				mask: !1
			}), !1) : "" == this.bank_name.trim() ? (wx.showToast({
				title: "请输入开户行",
				icon: "none",
				duration: 2e3,
				mask: !1
			  }), !1) : "" == this.card_num.trim() ? (wx.showToast({
				title: "请输入银行卡卡号",
				icon: "none",
				duration: 2e3,
				mask: !1
			  }), !1) : (wx.showLoading({
				title: "提交中...",
				mask: !0
				}), void this.$http.post(baseUrl + "/user/api/editBankInfo", {
				  bankCard: this.card_num,
				realname: this.user_name,
				  bankName: this.bank_name
			}).then(function(t) {
				wx.hideLoading();
				var e = t.data;
				e.success ? wx.showToast({
					title: "添加成功",
					icon: "success",
					duration: 2e3,
					mask: !0,
					success: function(t) {
						wx.navigateBack({
							delta: 1
						});
					}
				}) : wx.showToast({
					title: e.description,
					icon: "none",
					duration: 2e3,
					mask: !0
				});
			}).catch(function(t) {
				wx.hideLoading(), wx.showToast({
					title: "网络错误，请稍后重试",
					icon: "none",
					duration: 2e3,
					mask: !1
				});
			}));
		}
	},
	created: function(){
		 
	}
});